$.fn.Paginate = function(pageNumber){
	 try
    {
		 
		if(typeof this.loader =='undefined') this.loader = '<div style="margin-left:40%;margin-top:15%;"><img src="imagenes/ajax-loader.gif" alt="loading" /></div">';
		
		if(typeof pageNumber == 'undefined') pageNumber=1;
		var searchQuery = $('#search').val ();
		var orden = $('#combo_orden').val ();
		if(typeof orden == 'undefined') orden="";
		// get the existing GET variables
		var getVars = '';
		$('input.search').each(function (index) {
				if($(this).attr('id') != 'search' && $(this).attr('id') != ''){
					getVars = getVars+'&'+$(this).attr('id')+"="+$(this).val();
			}
		        })
		// create the params string
		var url = "paginaAjax.php";
		var params = 'page='+pageNumber+'&orden='+orden+'&search='+searchQuery+getVars;
		//alert("ver" + params);
		// method | url | parameters
		$("#listing_container").load(url, params);	
    }
    // display the error in case of failure
    catch (e)
    {
      alert("NO se puede conectar al Servidor:\n" + e.toString());
      return false;
    }
	
}